home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / ENVIRON.H < prev    next >
C/C++ Source or Header  |  1989-03-10  |  523b  |  22 lines

  1. /* support for environment variables */
  2.  
  3. struct env_var {
  4.     struct env_var *left,*right;    /* tree pointers */
  5.     char *value;            /* var value */
  6.     char value_alloc;        /* value is alloced? */
  7.     char name[1];            /* var name, \0 terminated */
  8. };
  9.  
  10. #define NULLENV     ((struct env_var *) 0)
  11. #define NULLCHRP    ((char **) 0)
  12.  
  13. struct env_default {
  14.     char *name;            /* the name */
  15.     char *value;            /* it's default value */
  16. };
  17.  
  18. void readenv(),free_env();
  19. char **make_env();
  20. char *getenv(),*getnenv();
  21. struct env_var *setenv();
  22.